<div class="sysSiteGalleries index">
	<h1>
		<?php echo ($sysWebsites['SysWebsite']['title'])?> 轮播图
	</h1>
	<div class="bloc">
		<div class="title">
			<?php echo $this->element('admin/bread')?>
			 <p><?php echo $this->Html->link(__('添加'), array('action' => 'add',$sysWebsites['SysWebsite']['id'])); ?></p>
		</div>
	    <div class="admin_view_table">
	         <table cellpadding="0" cellspacing="0">
	          <thead>
				<tr>
					<th><?php echo $this->Paginator->sort('id'); ?></th>
					<th><?php echo $this->Paginator->sort('sys_website_id'); ?></th>
					<th><?php echo $this->Paginator->sort('sys_photo_id'); ?></th>
					<th><?php echo $this->Paginator->sort('title'); ?></th>
					<th><?php echo $this->Paginator->sort('description'); ?></th>
					<th><?php echo $this->Paginator->sort('sort'); ?></th>
					<th><?php echo $this->Paginator->sort('enable'); ?></th>
					<th><?php echo $this->Paginator->sort('created'); ?></th>
					<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	</thead>
				<tbody>
	<?php foreach ($sysSiteGalleries as $sysSiteGallery): ?>
	<tr>
		<td><?php echo h($sysSiteGallery['SysSiteGallery']['id']); ?>&nbsp;</td>
		<td><?php echo h($sysSiteGallery['SysWebsite']['title']); ?>&nbsp;</td>
		<td>
			<?php 
							if ($sysSiteGallery['SysPhoto']['id']>0){
								$imgsrc = thumb($sysSiteGallery['SysPhoto']);
							}else{
								$imgsrc = 'Album.nopic.jpg';
							}
							echo $this->Html->image($imgsrc,array('style'=>'width:200px;height:75px'));
						 ?>
		</td>
		<td><?php echo h($sysSiteGallery['SysSiteGallery']['title']); ?>&nbsp;</td>
		<td><?php echo h($sysSiteGallery['SysSiteGallery']['description']); ?>&nbsp;</td>
		<td><?php echo h($sysSiteGallery['SysSiteGallery']['sort']); ?>&nbsp;</td>
		<td><?php echo h($sysSiteGallery['SysSiteGallery']['enable']); ?>&nbsp;</td>
		<td><?php echo h($sysSiteGallery['SysSiteGallery']['created']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $sysSiteGallery['SysSiteGallery']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $sysSiteGallery['SysSiteGallery']['id']), null, __('Are you sure you want to delete # %s?', $sysSiteGallery['SysSiteGallery']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</tbody>
			</table>
	    </div>
	</div> 
</div> 